<?php
$xajax = new xajax(); 
//$xajax->debugOn(); // Uncomment this line to turn debugging on
$xajax->registerFunction("logoutFunc");

$xajax->registerFunction("processFavorit");
$xajax->registerFunction("unfavoritFunc");
$xajax->registerFunction("reportProblem");
$xajax->registerFunction("hidePost");

$xajax->processRequests();
?>

<?php get_header(); ?>

<DIV id=container>


<DIV id=searchform>
<br/><?php get_nav_bar(); ?><br/>
<FORM id=thisform2 name=thisform2 action=./?search method=get>

<DIV class=instruction>
<DIV>
<SPAN class=search-1><LABEL for=search>输入关键字:</LABEL><BR>
<INPUT id=search style="WIDTH: 25em" size=30 value="<?=$_REQUEST['search'] ?>" name=search>
<INPUT type=submit value=搜索 name=submitsearch></SPAN>
</DIV></DIV>
</FORM></DIV>

<!-- <DIV style="FLOAT: right">
<A href="./?feed&search="><img src="<?php bloginfo('stylesheet_directory'); ?>/img/rss.gif" border=0 align=absmiddle></A>
</DIV> -->

<H4><span>搜索结果</span></H4> 

	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>	


<DIV class=news-summary id=news-<?php the_post_id(); ?> style="Z-INDEX: <?php get_z_index(); ?>;">
<DIV class=news-body>
<H3 id=title<?php the_post_id(); ?>><img align="absmiddle" border="0" src="<?php bloginfo('stylesheet_directory'); ?>/img/arrow-b.gif" width="20" height="20"> <A href="<?php the_post_url(); ?>" target="_blank"><?php the_post_title(); ?></A> </H3>
<P class=news-submitted><A href="<?php the_siteurl(); ?>/?user=<?php the_post_author(); ?>"><?php the_post_author(); ?></A> 于 <?php the_past_time(); ?> 前提交 <span class=viaurl><?php get_viaurls(); ?></span></P>
<P class=news-body-text><?php the_content_abs(); ?> <img align="absmiddle" border="0" src="<?php bloginfo('stylesheet_directory'); ?>/img/arrow-s.gif" width="13" height="13"></P>

<?php get_popup_urls(); ?>

<DIV class=news-details>
<A class="tool comments" href="<?php the_siteurl(); ?>/?q=<?php the_post_id(); ?>"><?php get_comment_text(); ?></A>
<SPAN class=tool>标签:<?php get_post_tags(); ?> </SPAN>
<?php edit_post_link("编辑","<SPAN class=tool>","</SPAN>"); ?>
<?php hide_post_link("隐藏","<SPAN class=tool>","</SPAN>"); ?>

<?php if(get_currentuserinfo()): ?>
<ul class="probdrop" id="ul<?php the_post_id(); ?>" style="z-index:<?php get_z_index(); ?>;">
<li><a href="javascript://" onclick="HideandUNhideObj('<?php the_post_id(); ?>');" class="toplinep">问题反馈</a>
<div style="display: none;" id="div<?php the_post_id(); ?>">
 <ul>
      <li class="probdroplist"><a href="javascript://" onclick="javascript:xajax_reportProblem(<?php the_post_id(); ?>,<?php get_currentuserid(); ?>,1); HideandUNhideObj(<?php the_post_id(); ?>)" class="droplinep">重复的文章</a></li>
      <li class="probdroplist"><a href="javascript://" onclick="javascript:xajax_reportProblem(<?php the_post_id(); ?>,<?php get_currentuserid(); ?>,2); HideandUNhideObj(<?php the_post_id(); ?>)" class="droplinep">链接无法访问</a></li>
      <li class="probdroplist"><a href="javascript://" onclick="javascript:xajax_reportProblem(<?php the_post_id(); ?>,<?php get_currentuserid(); ?>,3); HideandUNhideObj(<?php the_post_id(); ?>)" class="droplinep">垃圾信息</a></li>
      <li class="probdroplist"><a href="javascript://" onclick="javascript:xajax_reportProblem(<?php the_post_id(); ?>,<?php get_currentuserid(); ?>,4); HideandUNhideObj(<?php the_post_id(); ?>)" class="droplinep">内容不准确</a></li>
</ul>
</div>
</li>
</ul>
<?php endif; ?>

</DIV>

<UL class=news-digg>
  <LI class="digg-count shade-<?php the_shade_id(); ?>" id=main0>
  <A id=diggs<?php the_post_id(); ?> href="<?php the_siteurl(); ?>/?q=<?php the_post_id(); ?>"><STRONG id=diggs-strong-<?php the_post_id(); ?>><?php the_favor_count(); ?></STRONG></A> 
  <LI class=digg-it id=diglink<?php the_post_id(); ?>><?php get_favorit_link(); ?>
  </LI>
</UL>

</DIV></DIV>

	<?php endwhile; else: ?>
		<?php //header("location:404.php"); ?>
		<br/>目前还没有该标签的文章，您可以<A HREF="./?submit">提交新的文章</A> 。
	<?php endif; ?>
    
  
<div class="pages">
<?php get_post_nav(); ?>
</div>

</DIV>

</DIV>
  
<?php get_footer(); ?>

